package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author chestnuts tlx
 * @create 2021/6/29 14:21
 */
@Data
public class GoodsListParam {

    @ApiModelProperty(value = "优惠券id",example = "1")
    @NotNull(message = "优惠券id不能为空")
    @Min(value = 1, message = "优惠券ID有误")
    private Integer couponId;

    @ApiModelProperty(value = "商品id",example = "1")
    private Integer goodsId;
    @ApiModelProperty(value = "商品数量",example = "1")
    private Integer number;


}
